package io;

import java.io.File;
import java.io.IOException;

/**
 * @author krystal
 * @date 2022/11/26 22:00
 */
public class Demo1 {
    public static void main(String[] args) throws IOException {
        File f=new File("D:/do.txt");
        System.out.println(f.getParent());
        System.out.println(f.getName());
        System.out.println(f.getPath());
        System.out.println(f.getAbsolutePath());
        System.out.println(f.getCanonicalPath());
    }
}
